<!--
 * @Author: your name
 * @Date: 2021-08-19 11:21:10
 * @LastEditTime: 2021-08-19 11:53:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \练习\11-huxideng.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>呼吸灯</title>
    <style>
        div{
            box-sizing: border-box;
        }
        .container{
            width: 300px;
            height: 500px;
            background-color: lightsalmon;
            margin: 0 auto;
        }
        .box{
            height: 300px;
            padding: 30px;
            background-color: lightskyblue;
            animation: move_outer 6s linear infinite;
        }
        .box .circle{
            height: 100%;
            border-radius: 50%;
        }
        .box > .outer{
            border: 5px solid lightslategray;
            padding: 40px;
            animation: move_inner 6s linear infinite;
        }
        .box > .outer > .inner{
            border: 8px solid lightseagreen;
        }
        @keyframes move_outer{
            20%{
                padding: 20px;
            }
            40%{
                padding: 30px;
            }
        }
        @keyframes move_inner {
            20%,70%{
                padding: 50px;
            }
            40%,100%{
                padding: 40px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box">
            <div class="outer circle">
                <div class="inner circle"></div>
            </div>
        </div>
    </div>
</body>
</html>